package com.hkfn.rfb.common.bean;

public class AppVersionModel extends BaseModel {
    private String downloadUrl;
    private String version;
    private String remark;
    private String forceUpdate;
    private String apkSize;

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getForceUpdate() {
        return forceUpdate;
    }

    public void setForceUpdate(String forceUpdate) {
        this.forceUpdate = forceUpdate;
    }

    public String getApkSize() {
        return apkSize;
    }

    public void setApkSize(String apkSize) {
        this.apkSize = apkSize;
    }

    public AppVersionModel() {
    }

    public int getVersionCode(){
        try {
            return Integer.parseInt(version.replace("V", "").replace("v", "").replace(".", ""));
        }catch (Exception e){
            return 0;
        }
    }
}
